<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
</head>

<body>
<form class="form-inline" action="/findCountry" method="get">
        <input type="text" class="form-control" name="country" placeholder="China">
    <button type="submit" class="btn btn-primary">查询</button>
</form>
    <table>
        <thead>
        <tr>
            <th style="width: 30%">国家</th>
            <th style="width: 30%">城市</th>
            <th style="width: 20%">累计确诊人数</th>
            <th style="width: 20%">今日新增确诊人数</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="regionStat : ${data.regionStatsList}">
            <td th:text="${regionStat.country}"></td>
            <td th:text="${regionStat.state}"></td>
            <td th:text="${regionStat.latestTotalCaes}"></td>
            <td th:text="${regionStat.diffFromPrevDay}"></td>
        </tr>
        </tbody>
    </table>
</body>
</html>
